<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>T3D: T3D::ParticleBehaviour Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">T3D
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>T3D</b></li><li class="navelem"><a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_t3_d_1_1_particle_behaviour-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">T3D::ParticleBehaviour Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Standard Particle Behaviour.  
 <a href="class_t3_d_1_1_particle_behaviour.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_particle_behaviour_8h_source.html">ParticleBehaviour.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for T3D::ParticleBehaviour:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t3_d_1_1_particle_behaviour.png" usemap="#T3D::ParticleBehaviour_map" alt=""/>
  <map id="T3D::ParticleBehaviour_map" name="T3D::ParticleBehaviour_map">
<area href="class_t3_d_1_1_component.html" alt="T3D::Component" shape="rect" coords="0,0,142,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9ebd76f1bbeffc9c099f8fe3a4953446"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a9ebd76f1bbeffc9c099f8fe3a4953446">ParticleBehaviour</a> (<a class="el" href="class_t3_d_1_1_particle_emitter.html">ParticleEmitter</a> *emitter, float lifeSpanMin, float lifeSpanMax)</td></tr>
<tr class="separator:a9ebd76f1bbeffc9c099f8fe3a4953446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3d217724a2e72cec327356fe557fdbf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#aa3d217724a2e72cec327356fe557fdbf">start</a> (<a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *from)</td></tr>
<tr class="separator:aa3d217724a2e72cec327356fe557fdbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cab63030afabd593c5bacf1a08be334"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a0cab63030afabd593c5bacf1a08be334">stop</a> ()</td></tr>
<tr class="separator:a0cab63030afabd593c5bacf1a08be334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c39386434d5927c8522de4a492fd9a1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c39386434d5927c8522de4a492fd9a1"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isActive</b> ()</td></tr>
<tr class="separator:a9c39386434d5927c8522de4a492fd9a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53c7b1d6f52e5da2b4f10a325b7abe57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a53c7b1d6f52e5da2b4f10a325b7abe57">setPositionRange</a> (float dx, float dy, float dz)</td></tr>
<tr class="separator:a53c7b1d6f52e5da2b4f10a325b7abe57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada4b1ba6d0422929e8ec76a0e3cf51b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#ada4b1ba6d0422929e8ec76a0e3cf51b3">setDirection</a> (float theta_y, float theta_z, float variance)</td></tr>
<tr class="separator:ada4b1ba6d0422929e8ec76a0e3cf51b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91c567d0865e59c97a584993066b4ccc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a91c567d0865e59c97a584993066b4ccc">setStartVelocity</a> (float min, float max)</td></tr>
<tr class="separator:a91c567d0865e59c97a584993066b4ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4776df4b90cb387f8b210fe4b875cb9d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a4776df4b90cb387f8b210fe4b875cb9d">setAcceleration</a> (float acceleration, float speedMinMax)</td></tr>
<tr class="separator:a4776df4b90cb387f8b210fe4b875cb9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfcd9250e801f0c94a26b0dc8156dd83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#adfcd9250e801f0c94a26b0dc8156dd83">setAlphaFade</a> (float <a class="el" href="class_t3_d_1_1_particle_behaviour.html#aa3d217724a2e72cec327356fe557fdbf">start</a>, float end)</td></tr>
<tr class="separator:adfcd9250e801f0c94a26b0dc8156dd83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bc28b6f47d432e3be61459cacc771b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_behaviour.html#a0bc28b6f47d432e3be61459cacc771b2">update</a> (float dt)</td></tr>
<tr class="separator:a0bc28b6f47d432e3be61459cacc771b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t3_d_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t3_d_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a></td></tr>
<tr class="memitem:ad4d95a7e7e570df833fe4f29ffb66238 inherit pub_methods_class_t3_d_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4d95a7e7e570df833fe4f29ffb66238"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (<a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *go)</td></tr>
<tr class="separator:ad4d95a7e7e570df833fe4f29ffb66238 inherit pub_methods_class_t3_d_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aa4bd502ef2044e59f266cf44d52ce8b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4bd502ef2044e59f266cf44d52ce8b9"></a>
<a class="el" href="class_t3_d_1_1_particle_emitter.html">ParticleEmitter</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>emitter</b></td></tr>
<tr class="separator:aa4bd502ef2044e59f266cf44d52ce8b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16c9349fd8b119fe0b8a15734b717e9b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16c9349fd8b119fe0b8a15734b717e9b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>active</b></td></tr>
<tr class="separator:a16c9349fd8b119fe0b8a15734b717e9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb2ac6211bd59e134a63901e76a84999"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb2ac6211bd59e134a63901e76a84999"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>elapsed</b></td></tr>
<tr class="separator:aeb2ac6211bd59e134a63901e76a84999"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9044a909f1376e7b16626e6b327aac99"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9044a909f1376e7b16626e6b327aac99"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>lifeSpan</b></td></tr>
<tr class="separator:a9044a909f1376e7b16626e6b327aac99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a759174bf5f77d16b4fd09835ef978cb9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a759174bf5f77d16b4fd09835ef978cb9"></a>
<a class="el" href="class_t3_d_1_1_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><b>direction</b></td></tr>
<tr class="separator:a759174bf5f77d16b4fd09835ef978cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0671c6c49957602ea44e9f44bcf37b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf0671c6c49957602ea44e9f44bcf37b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>speed</b></td></tr>
<tr class="separator:acf0671c6c49957602ea44e9f44bcf37b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc88f5bfba05d1421dfd63c2234f19e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc88f5bfba05d1421dfd63c2234f19e2"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>lifeSpanMin</b></td></tr>
<tr class="separator:abc88f5bfba05d1421dfd63c2234f19e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a987412fe6a7cdf6c5834eae043512844"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a987412fe6a7cdf6c5834eae043512844"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>lifeSpanMax</b></td></tr>
<tr class="separator:a987412fe6a7cdf6c5834eae043512844"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89cc1cb730188499512d9adcb47c12a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89cc1cb730188499512d9adcb47c12a4"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>startDistanceX</b></td></tr>
<tr class="separator:a89cc1cb730188499512d9adcb47c12a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a638b018c7c95501866667af0c8741422"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a638b018c7c95501866667af0c8741422"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>startDistanceY</b></td></tr>
<tr class="separator:a638b018c7c95501866667af0c8741422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa401ac82eb1fb2da90a5aca38519a041"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa401ac82eb1fb2da90a5aca38519a041"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>startDistanceZ</b></td></tr>
<tr class="separator:aa401ac82eb1fb2da90a5aca38519a041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a243179534f205a20a04134dbc2a236bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a243179534f205a20a04134dbc2a236bc"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>dirBaseThetaY</b></td></tr>
<tr class="separator:a243179534f205a20a04134dbc2a236bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b2e1a1ad24f793ba92a025488e0805e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b2e1a1ad24f793ba92a025488e0805e"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>dirBaseThetaZ</b></td></tr>
<tr class="separator:a0b2e1a1ad24f793ba92a025488e0805e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30bd1bd65146e689de57665ec6f65cf8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30bd1bd65146e689de57665ec6f65cf8"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>directionVar</b></td></tr>
<tr class="separator:a30bd1bd65146e689de57665ec6f65cf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af701ea1680221259e595a79823ac705e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af701ea1680221259e595a79823ac705e"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>speedStartMin</b></td></tr>
<tr class="separator:af701ea1680221259e595a79823ac705e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a966634d66bc670e1f2aba505f357d643"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a966634d66bc670e1f2aba505f357d643"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>speedStartMax</b></td></tr>
<tr class="separator:a966634d66bc670e1f2aba505f357d643"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa70c769c80d9b5b35d682da4702bced9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa70c769c80d9b5b35d682da4702bced9"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>acceleration</b></td></tr>
<tr class="separator:aa70c769c80d9b5b35d682da4702bced9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb08f26f6bf7f77f8fa2a9bca76fe0dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb08f26f6bf7f77f8fa2a9bca76fe0dc"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>speedMinMax</b></td></tr>
<tr class="separator:adb08f26f6bf7f77f8fa2a9bca76fe0dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a427feba173e157216d2431df4426fe55"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a427feba173e157216d2431df4426fe55"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>alphaStart</b></td></tr>
<tr class="separator:a427feba173e157216d2431df4426fe55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ec0bf19e117a7334cbf3275cd961ca5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ec0bf19e117a7334cbf3275cd961ca5"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>alphaEnd</b></td></tr>
<tr class="separator:a2ec0bf19e117a7334cbf3275cd961ca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_class_t3_d_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_t3_d_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a></td></tr>
<tr class="memitem:ad42bd6f7170fcad44af2084d2c2f2428 inherit pub_attribs_class_t3_d_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad42bd6f7170fcad44af2084d2c2f2428"></a>
<a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>gameObject</b></td></tr>
<tr class="separator:ad42bd6f7170fcad44af2084d2c2f2428 inherit pub_attribs_class_t3_d_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Standard Particle Behaviour. </p>
<p>Manages an individual particle for its lifetime Particles are reusable </p>
<dl class="section author"><dt>Author</dt><dd>David Pentecost </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9ebd76f1bbeffc9c099f8fe3a4953446"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T3D::ParticleBehaviour::ParticleBehaviour </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_particle_emitter.html">ParticleEmitter</a> *&#160;</td>
          <td class="paramname"><em>emitter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lifeSpanMin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lifeSpanMax</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor Initialises members </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4776df4b90cb387f8b210fe4b875cb9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::setAcceleration </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>acceleration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>speedMinMax</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setAcceleration Sets particles acceleration and min or max speed </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">acceleration</td><td>particle acceleration (units per second per second) </td></tr>
    <tr><td class="paramname">speedMinax</td><td>min speed if -ve acceleration otherwise max speed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adfcd9250e801f0c94a26b0dc8156dd83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::setAlphaFade </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setAlphaFade Sets alpha blending (fade) gradient from start to end of article lifecycle. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>start alpha value (1.0 opaque, 0.0 invisible) </td></tr>
    <tr><td class="paramname">max</td><td>end alpha value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ada4b1ba6d0422929e8ec76a0e3cf51b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::setDirection </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>theta_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>theta_z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>variance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setDirection Sets base direction of motion and random variance Assumes bases direction is along +ve x axis </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">theta_y</td><td>rotation around y axis </td></tr>
    <tr><td class="paramname">theta_z</td><td>rotation around z axis </td></tr>
    <tr><td class="paramname">variance</td><td>+/- random variation applied to angles </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a53c7b1d6f52e5da2b4f10a325b7abe57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::setPositionRange </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setPositionRange set initial maximum random distance from emitter </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>maximum initial distance from particle emitter in X axis (+/-) </td></tr>
    <tr><td class="paramname">dy</td><td>maximum initial distance from particle emitter in Y axis (+/-) </td></tr>
    <tr><td class="paramname">dz</td><td>maximum initial distance from particle emitter in Z axis (+/-) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a91c567d0865e59c97a584993066b4ccc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::setStartVelocity </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setStartVelocity Sets startup seed range </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>min start speed (units per second) </td></tr>
    <tr><td class="paramname">max</td><td>max start speed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa3d217724a2e72cec327356fe557fdbf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *&#160;</td>
          <td class="paramname"><em>from</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>start Starts particle activity sequence </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td>object to derive world position from </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0cab63030afabd593c5bacf1a08be334"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>stop stop and hide particle </p>

</div>
</div>
<a class="anchor" id="a0bc28b6f47d432e3be61459cacc771b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleBehaviour::update </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>update regular update </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dt</td><td>elapsed time from last frame </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/<a class="el" href="_particle_behaviour_8h_source.html">ParticleBehaviour.h</a></li>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/ParticleBehaviour.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 27 2014 10:39:52 for T3D by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
